<?php /* Smarty version Smarty-3.1.13, created on 2016-12-13 09:35:21
         compiled from ".\templates\page3.html" */ ?>
<?php /*%%SmartyHeaderCode:19796582ed0b12f6440-72828200%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '5fe82817414118ec4fbad565bf86f2d013b846e1' => 
    array (
      0 => '.\\templates\\page3.html',
      1 => 1480470365,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '19796582ed0b12f6440-72828200',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.13',
  'unifunc' => 'content_582ed0b133c947_88479016',
  'variables' => 
  array (
    'question_name' => 0,
    'questions' => 0,
    'k' => 0,
    'v' => 0,
    'key' => 0,
    'val' => 0,
    'user_id' => 0,
    'question_id' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_582ed0b133c947_88479016')) {function content_582ed0b133c947_88479016($_smarty_tpl) {?><!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
		<title>酒店知识大赛</title>
		<link rel="stylesheet" type="text/css" href="css/main.css" />
                <script src="http://static.xz.veimg.cn/js/plus/2013/ga.js" type="text/javascript" charset="utf-8"></script>
                <script src="http://www.google-analytics.com/analytics.js" type="text/javascript" charset="utf-8"></script>
		<style type="text/css">
			body {
				background: url(img/bg_2.png) repeat;
				position: relative;
			}
		</style>
	</head>
	<body>
		<div class="page2_wrap page3_wrap">
			<div class="title_img">
				<img src="img/datititle.png" />
				<p class="section"><strong><?php echo $_smarty_tpl->tpl_vars['question_name']->value;?>
</strong></p>
			</div>
			<div class="bgimg">
				<img src="img/timubg.png"/>
			</div>
			<div class="question_box">
				<div class="time">
					<p id="time" class="js_time">000s</p>
					<p id="number">1/10</p>
				</div>
                                <?php  $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['v']->_loop = false;
 $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['questions']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value){
$_smarty_tpl->tpl_vars['v']->_loop = true;
 $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['v']->key;
?>
				<div class="question" id='question<?php echo $_smarty_tpl->tpl_vars['k']->value;?>
' <?php if ($_smarty_tpl->tpl_vars['k']->value!=1){?>style='display: none'<?php }?>>
					<div class="description">
						<?php echo $_smarty_tpl->tpl_vars['v']->value['question'];?>

					</div>
					<div class="selection">
						<ul>
							<li <?php if ($_smarty_tpl->tpl_vars['v']->value['answer']=='A'){?>class="right"<?php }?>>
								<p>A、</p>
								<span><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['v']->value['question_options']['A'];?>
<?php $_tmp1=ob_get_clean();?><?php echo $_tmp1;?>
</span>
							</li>
                                                        <li <?php if ($_smarty_tpl->tpl_vars['v']->value['answer']=='B'){?>class="right"<?php }?>>
								<p>B、</p>
								<span><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['v']->value['question_options']['B'];?>
<?php $_tmp2=ob_get_clean();?><?php echo $_tmp2;?>
</span>
							</li>
                                                        <li <?php if ($_smarty_tpl->tpl_vars['v']->value['answer']=='C'){?>class="right"<?php }?>>
								<p>C、</p>
								<span><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['v']->value['question_options']['C'];?>
<?php $_tmp3=ob_get_clean();?><?php echo $_tmp3;?>
</span>
							</li>
                                                        <li <?php if ($_smarty_tpl->tpl_vars['v']->value['answer']=='D'){?>class="right"<?php }?>>
								<p>D、</p>
								<span><?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['v']->value['question_options']['D'];?>
<?php $_tmp4=ob_get_clean();?><?php echo $_tmp4;?>
</span>
							</li>
						</ul>
					</div>
				</div>
                                <?php } ?>
			</div>
		</div>

		<div class="background"></div>
		<div class="background_two"></div>
		<!--答题错误-->
                <?php  $_smarty_tpl->tpl_vars['val'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['val']->_loop = false;
 $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['questions']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['val']->key => $_smarty_tpl->tpl_vars['val']->value){
$_smarty_tpl->tpl_vars['val']->_loop = true;
 $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['val']->key;
?>
		<div class="err_answer err<?php echo $_smarty_tpl->tpl_vars['key']->value;?>
">
			<div class="title">
				<a href="javascript:;"></a>哎呀，答错了~
			</div>
			<div class="explain">
				答案提示：<?php echo $_smarty_tpl->tpl_vars['val']->value['answer_key'];?>

			</div>
			<p class="commod_close">再答一次</p>
		</div>
                <?php } ?>
		
		<div class="draw js_chaoshi">
			<div class="title">
				您已超时，请选择别的部门继续挑战
			</div>
			<div class="btns">
				<p class="err js_back">重新选题</p>
			</div>
		</div>
                <?php echo $_smarty_tpl->getSubTemplate ("content.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>


                <input type='hidden' id='user_id' value="<?php echo $_smarty_tpl->tpl_vars['user_id']->value;?>
" />
                <input type='hidden' id='question_id' value="<?php echo $_smarty_tpl->tpl_vars['question_id']->value;?>
" />
                <input type='hidden' id='status' value="1" />
                <script>
                    ga('send','event','crazy_answer_second','41','2');
                </script>
	</body>
	<script src="js/jquery-1.11.2.min.js" type="text/javascript" charset="utf-8"></script>
	<script src="js/main.js" type="text/javascript" charset="utf-8"></script>
        <?php echo $_smarty_tpl->getSubTemplate ("common.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>

</html><?php }} ?>